package com.serviceImpl;

import com.dao.EmpDao;
import com.model.Emp;
import com.service.EmpService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Administrator on 2017/9/1.
 */
@Service
public class EmpServiceImpl implements EmpService {
    @Resource
    private EmpDao empDao;

    @Override
    public List<Emp> getEmpList(Emp emp) {
        return empDao.getEmpList(emp);
    }

    @Override
    public int countTotalOfEmp(Emp emp) {
        return empDao.countTotalOfEmp(emp);
    }

    @Override
    public int insertEmp(Emp emp) {
        return empDao.insertEmp(emp);
    }

    @Override
    public int modifyEmp(Emp emp) {
        return empDao.modifyEmp(emp);
    }

    @Override
    public int changeStatus(Emp emp) {
        return empDao.changeStatus(emp);
    }

    @Override
    public int deleteEmp(Emp emp) {
        return empDao.deleteEmp(emp);
    }

    @Override
    public int checkExist(Emp emp) {
        return empDao.checkExist(emp);
    }
}
